import requests

from script.get_user_info.config.nowcoder_config import nc_headers


# 获得nowcoder的html
def nc_response(uid):
    baseurl = "https://www.nowcoder.com/acm/contest/profile/" + uid + "/practice-coding"
    response = requests.get(url=baseurl, headers=nc_headers)
    return response.text

# 获得nowcoder的html
if __name__ == '__main__':
    print(nc_response('961118220'))